home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / CyberDEFs 1.0.1 Folder / CyberDEFs / CyberDEFs.rsrc / TEXT_31316_œBusiness • œThree Classes • ”PictCDEF.txt < prev    next >
Encoding:
Text File  |  1994-06-12  |  1.2 KB  |  21 lines

  1. Using the picture tool in the dialog editor of your resource editor, you can easily assign a PICT ID to an interface item. But how easy is it to draw the graphic offscreen and blast it back onscreen using CopyBits? PictCDEF makes this kind of picture handling easy, PLUS you get an immense performance boost and lots of built-in goodies.
  2.  
  3. Features of PictCDEF
  4.  
  5. ‚Ä¢ Draws all pictures offscreen first for speed
  6. ‚Ä¢ Uses ultra-fast CopyBits to draw onscreen
  7. ‚Ä¢ Draws any picture structure, even JPEG
  8. ‚Ä¢ Without coding, picts can switch-out when clicked
  9. ‚Ä¢ Easy-to-use dimming feature
  10. ‚Ä¢ Easy-to-preset properties:
  11.      ‚Äî Crop
  12.      ‚Äî Clip
  13.      ‚Äî Frame
  14. ‚Ä¢ Cropped picts may be moved within the graphPort 
  15.    using a hand cursor
  16.  
  17. Open √é "D&M, Inc." and click on the phone picture to see the PictCDEF in action. On the mousedown event TrackControl is called. Then, the parent CDEF of the phone item switches the default phone PICT with a red phone PICT as you click and hold down the mouse button. NO SWITCHING CODE was written to make this happen!
  18.  
  19. See Àá "Var. Codes" for more detail on properties of PictCDEFs.
  20.  
  21. See Àá "Make a Control" or Àá "Events" for specific info on implementing CyberDEFs in your dev environment.